package cn.fenqing168.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
@Slf4j
public class PaymentController {

    /**
     * 注入配置文件的端口号
     */
    @Value("${server.port}")
    private String port;

    @GetMapping("/payment/nacos")
    public String payment(){
        return "测试nacosm,服务实例端口为：" + port;
    }

}
